import ajax from "./ajax"

//登陆
//返回200
export const loginApi = ({username,password}) => ajax("/begin/login","POST",{username,password});

//某一彩票10条数据
export const findAllLottery = type => ajax("/begin/findAllLottery","POST",{type});

//首页所有彩票最新一条数据
export const findAllLastLottery = () => ajax("/begin/findAllLastLottery","POST");

//所有倒计时
//返回{"JSSC_hms":"02:46","XYFT":46,"JSSC":166,"XYFT_hms":"00:46"}
export const countDown = () => ajax("/begin/countDown","POST");

//下一期幸运飞艇彩票期数
//返回字符串
export const nextISSUE = () => ajax("/begin/nextISSUE","POST");

//下一期彩票请求
export const getLotteryCode = (ISSUE,type) => ajax("/begin/findNextLottery","POST",{ISSUE,type});

//下注基数(每注价格)
export const basePrice = () => ajax("/begin/base","POST");

//公告列表
export const allNotice = () => ajax("/begin/allNotice","POST");